# API包初始化文件
from flask import Blueprint

# 创建API蓝图
api_bp = Blueprint('api', __name__, url_prefix='/api')

# 导入所有路由模块
from app.api.routes import index
from app.api.routes import user
from app.api.routes import complex_query
from app.api.routes import request_demo

# 导入认证控制器
from app.api.controllers.auth_controller import auth_bp

# 注册认证蓝图到API蓝图
api_bp.register_blueprint(auth_bp)

# 导入用户资料控制器
from app.api.controllers.profile_controller import profile_bp

# 注册用户资料蓝图到API蓝图
api_bp.register_blueprint(profile_bp)

# 导出蓝图
__all__ = ['api_bp', 'auth_bp']